package org.sampleSpringFramework.mvc.render.impl;

import org.sampleSpringFramework.mvc.processor.RequestProcessorChain;
import org.sampleSpringFramework.mvc.render.ResultRender;

/**
 * 默认使用的结果渲染器（返回状态码）
 */
public class DefaultResultRender implements ResultRender {

	@Override
	public void render(RequestProcessorChain requestProcessorChain) throws Exception {
		int code = requestProcessorChain.getResponseCode();
		requestProcessorChain.getResponse().setStatus(code);
	}
}
